<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <script type="text/javascript" src="../js/axios.min.js"></script>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
</head>

<body>
    <div id="app" class="container">
        <h1 v-if="isTrue">YES 😊!</h1>
        <h1 v-else>Oh No 😟!</h1>

        <button class="btn btn-primary" @click="clickcount += 1">点击加一</button>
        <h3>{{clickcount}}</h3>

        <hr>

        <input type="checkbox" id="checkbox" v-model="checked">
        <label for="checkbox">{{ checked }}</label>
    </div>

    <div id='example-3' class="container">
        <input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
        <label for="jack">Jack</label>
        <input type="checkbox" id="john" value="John" v-model="checkedNames">
        <label for="john">John</label>
        <input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
        <label for="mike">Mike</label>
        <br>
        <span>Checked names: {{ checkedNames }}</span>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                isTrue: false,
                clickcount: 0,
                checked: true
            },
            methods: {}
        });

        new Vue({
            el: '#example-3',
            data: {
                checkedNames: []
            }
        })
    </script>
</body>

</html>